#pragma once

#include "cocos2d.h"
#include "cocos-ext.h"

using namespace cocos2d;

class GameStateLayer : public CCLayer 
{
public:
    virtual bool init();  
    CREATE_FUNC(GameStateLayer);

	~GameStateLayer(void); 
	
	void btnCallAccelerate(CCObject* obj);
	void btnCallSetting(CCObject* obj);
	void updateMoney();
	void getMoney(int money);
	void updateProgress(int max, int current);

private:
	extension::UIImageView* speed;
	bool isAccelerated;
	int moneyValue;
	CCSize winSize;

	extension::UILayer *m_pUiLayer;
    extension::Layout *m_pWidget;
};


